package com.wkbb.basic.mapper;

import com.wkbb.basic.model.District;
import com.wkbb.common.base.BaseMapper;
import com.wkbb.common.dto.basic.DistrictDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DistrictMapper extends BaseMapper<District> {

    List<DistrictDto> getDistrictList(@Param("parentCode") Integer parentCode, @Param("type") Integer type);

    DistrictDto findDistrict(@Param("name") String name, @Param("type") Integer type);

    String getDistrictNameByCode(@Param("code") String code);
}